package stbz_yc_sdk_golang

import (
	"github.com/gogf/gf/crypto/gmd5"
	"github.com/gogf/gf/util/guid"
	"strconv"
	"time"
)

func CreateIdentify(prefix string) string {
	t1 := time.Now().Format("20060102")
	t2 := time.Now().UnixNano() //纳秒
	str := strconv.Itoa(int(t2))
	s, _ := gmd5.EncryptString(guid.S() + str)
	st := s[12:24]
	return prefix + t1 + st
}